import {
    Base
} from '../../utils/base.js';
class Coupon extends Base {
    constructor() {
        super();
    }

    //单个优惠券信息(带推广人信息)
    getCouponById(params, callback) {
        var url = '/ddaigo-platform/coupon/getCouponById';
        this.commonRequest(url, params, callback);
    }

    //领取优惠券
    receive(params, callback) {
        var url = '/ddaigo-platform/coupon/receive';
        this.commonRequest(url, params, callback);
    }

}

module.exports = {
    Coupon
}